home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 010a / palert24.zip / DAY.BAT next >
DOS Batch File  |  1991-10-22  |  669b  |  46 lines

  1. echo off
  2. palert /d
  3.  
  4. rem NOTE:  Errorlevels MUST be evaluated from the greatest to the lowest.
  5. rem        If you do not, the batch file will not work.
  6.  
  7. if errorlevel = 6 goto sat
  8. if errorlevel = 5 goto fri
  9. if errorlevel = 4 goto thu
  10. if errorlevel = 3 goto wed
  11. if errorlevel = 2 goto tue
  12. if errorlevel = 1 goto mon
  13. if errorlevel = 0 goto sun
  14. goto error
  15.  
  16. :sat
  17. echo Today is Saturday
  18. goto end
  19.  
  20. :fri
  21. echo Today is Friday
  22. goto end
  23.  
  24. :thu
  25. echo Today is Thursday
  26. goto end
  27.  
  28. :wed
  29. echo Today is Wedensday
  30. goto end
  31.  
  32. :tue
  33. echo Today is Tuesday
  34. goto end
  35.  
  36. :mon
  37. echo Today is Monday
  38. goto end
  39.  
  40. :sun
  41. echo Today is Sunday
  42. goto end
  43.  
  44. :error
  45. :end
  46.